-
Notifications
You must be signed in to change notification settings - Fork 5
Fix/boc depth hashes #174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Fix/boc depth hashes #174
Conversation
| root1.append_raw(&[0], 8).unwrap(); | ||
|
|
||
| for i in 0..1024 { | ||
| for i in 0..800 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's new depth limit? Can we use common static const var here?
| // cell.finalize(2048).unwrap(); | ||
| let _cell = TokenValue::write_bytes(&[100u8; 128 * 2000], &ABI_VERSION_2_4) | ||
| .unwrap() | ||
| let mut data = [100u8; 98 * 1024 + 1248].to_vec(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
100 KB cell is maximum now?
| fn hash<H: std::hash::Hasher>(&self, state: &mut H) { | ||
| core::mem::discriminant(self).hash(state); | ||
| match self { | ||
| HashableCell::Any(cell) => cell.hash(MAX_LEVEL).hash(state), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should be tested well, it can seriously affect performance
No description provided.